<template>
  <div class="notice">
    <Tool />
    <PaginationCard
      :total="totalCount"
      :page-size="maxResultCount"
      @sizeChange="handleSizeChange"
      @currentChange="handleCurrentChange"
    >
      <div slot="header" class="clearfix">
        <el-button type="success" size="mini" @click="jumpAdd">
          发布新通知
        </el-button>
      </div>
      <Table slot="table" ref="CheckHallTable" :list="list" />
    </PaginationCard>
  </div>
</template>

<script>
import Tool from './components/notice/Tool'
import Table from './components/notice/Table'
import PaginationCard from '@/components/PaginationCard'
export default {
  components: {
    Tool,
    Table,
    PaginationCard
  },
  data() {
    return {
      totalCount: 0,
      maxResultCount: 10,
      list: []
    }
  },
  methods: {
    handleSizeChange() {},
    handleCurrentChange() {},
    jumpAdd() {
      const vm = this
      vm.$router.push('/system/notice/add')
    }
  }
}
</script>

<style lang="scss" scoped></style>
